package com.cb.staservice.client;

import com.cb.staservice.client.impl.UcenterDegradeFeignClient;
import com.cb.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cb
 * @version 1.0
 * @date 2020/7/1 10:57
 */
@Component
@FeignClient(value = "service-ucenter",fallback = UcenterDegradeFeignClient.class)
public interface UcenterClient {

    /**
     * 查询某天的注册人数
     * @param day
     * 某天日期
     * @return
     * 注册人数
     */
    @GetMapping("/ucenterservice/member/countRegister/{day}")
    R countRegister(@PathVariable("day") String day);
}
